<template>
    <div class="footer">
        <div class="item">
            <router-link to="/home" class="nav-item" active-class="nav-color" ><van-icon name="wap-home-o" size="30"/>首页</router-link>
        </div>
        <div  class="item">
            <router-link to="/cart" class="nav-item"><van-icon name="shopping-cart-o" size="30" />购物车</router-link>
        </div>
        <div  class="item">
            <router-link to="/order" class="nav-item"><van-icon name="coupon-o" size="30" />订单</router-link>
        </div>
        <div  class="item">
            <router-link to="/mine" class="nav-item"><van-icon name="manager-o" size="30" />我的</router-link>
        </div>
    </div>
</template>

<style lang="less" scoped>
    .footer{
        display: flex;
        background: #FFF;
        border-top: #EEE;
        .item{
            
            flex: 1;
            .nav-item{
                display: flex;
                flex-flow: column;
                align-items:center;
            }
            .nav-color{
                color: #FFC400
            }
        }
    }
</style>
